package com.eyas.business.model.jdbcEntity.table;

import com.eyas.core.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Auther: 王龙龙
 * @Date: 2019/3/16 11:17
 * @Description:
 */
@Table("rechargeinfo")
public class RechargeInfo {
    @PrimaryKey(value = "rechargeid",columnType = ColumnType.INT,columnSize = 8,IsNull = false,inrementType = IncrementType.AUTOINCREMENT)
    private Integer rechargeid;
    @Column(column = "userid",columnType = ColumnType.INT,IsNull = false)
    private Integer userid;
    @Column(column = "nums",columnType = ColumnType.INT,IsNull = false)
    private Integer nums;
    @Column(column = "amount",columnType = ColumnType.INT,IsNull = false)
    private Integer amount;
    @Column(column = "rechargetype",columnType = ColumnType.STRING,IsNull = false,columnSize = 1)
    private String rechargetype;

    @Column(column = "addid",columnType = ColumnType.INT,IsNull = true)
    private Integer addid;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(column = "addtime",columnType = ColumnType.DATE,IsNull = true)
    private Date addtime;
    @Column(column = "comments",columnType = ColumnType.TEXT,IsNull = true)
    private String comments;

    @Column(column = "validmonths",columnType = ColumnType.INT,IsNull = true)
    private Integer validmonths;

    public Integer getValidmonths() {
        return validmonths;
    }

    public void setValidmonths(Integer validmonths) {
        this.validmonths = validmonths;
    }

    public String getRechargetype() {
        return rechargetype;
    }

    public void setRechargetype(String rechargetype) {
        this.rechargetype = rechargetype;
    }

    public Integer getRechargeid() {
        return rechargeid;
    }

    public void setRechargeid(Integer rechargeid) {
        this.rechargeid = rechargeid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getNums() {
        return nums;
    }

    public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public void setNums(Integer nums) {
        this.nums = nums;
    }

    public Integer getAddid() {
        return addid;
    }

    public void setAddid(Integer addid) {
        this.addid = addid;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }
}
